﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RM.BasicLibrary.Requests
{
    public class Page
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public int PageCount { get { return PageTotal % PageSize > 0 ? (PageTotal / PageSize) + 1 : PageTotal / PageSize; } }
        public dynamic Dynamic { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int PageTotal { get; set; }
    }

    public class RequestPage<T> : Respose<T>
    {
        public bool IsPage
        {
            get { return PageInfo != null; }
        }
        public Page PageInfo { get; set; }
    }
}
